package com.vesystem.vegua.modules.common.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vesystem.vegua.modules.common.dto.SysIconDto;
import com.vesystem.vegua.modules.common.entity.SysIcon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hcy
 * @since 2020-12-20
 */
@Repository
public interface SysIconMapper extends BaseMapper<SysIcon> {

    IPage<SysIconDto> selectPageSysIconDto(Page<SysIconDto> page);

    Integer updateAppIcon(@Param("appIds") List<Integer> appIds,@Param("iconName") String iconName);

    List<Integer> selectAppIdsByIconName(String iconName);

}
